package com.springboot.redis.service.impl;

import com.springboot.redis.modle.TbRole;
import com.springboot.redis.mapper.TbRoleMapper;
import com.springboot.redis.service.TbRoleService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * <p>
 * 角色表 服务实现类
 * </p>
 *
 * @author Dudu
 * @since 2021-01-06
 */
@Service
public class TbRoleServiceImpl extends ServiceImpl<TbRoleMapper, TbRole> implements TbRoleService {

    @Override
    public List<TbRole> selectByID(String id) {
        return this.baseMapper.selectByID(id);
    }

     public Integer insertTbRole(TbRole tbRole)
     {
         return this.baseMapper.insertTbRole(tbRole);
     }
}
